<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- style -->
    <link rel="stylesheet" href="/css/style.css">
    <link rel="stylesheet" href="/css/style-fit.css">

    <!-- 百度统计 -->
    <script src="/js/tongji.js"></script>

    <title>X-Real-IP IP查询</title>
</head>
<body>

    <script src="/js/third/axios.min.js"></script>
    <script>
        axios({
            method: "GET",
            url: "/api/tool/x-real-ip"
        }).then(res => {
            const result = res.data;
            console.log("ip:", result.data);
            window.location.href = `/pages/message.html?message=<strong>X-Real-IP</strong><br/>值为<strong>${result.data}</strong>`
        });
    </script>
</body>
</html>


